/* 	Copyright: Vsevolod Mountaniol.
	This file implement OS abstraction level.
	The port to a new platform is easy - just port this file */


#undef DEBUG
#undef BE_VERBOSE
#include <string.h>
#include <malloc.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
 
#include "updater.types.h"
#include "updater.w.h"

VOID * w_malloc(INT size)
{
	VOID * a;
	ENTRY();
	a = malloc(size);
	RETURN( a );
}

VOID * w_calloc(INT m, INT size)
{
	VOID * a;
	ENTRY();
	a = calloc(m,size);
	RETURN( a );
}


INT w_memcmp(void * a, const void * b, INT size)
{
	INT i;
	ENTRY();
	i = memcmp(a,b,size);
	RETURN( i );
}

VOID * w_memset(void * a, INT b, size_t size)
{
	VOID * i;
	ENTRY();
	i = memset(a, b, size);
	RETURN( i );
}

VOID * w_memcpy(void * a, const void *b, size_t size)
{
	VOID * i;
	i = memcpy(a,b,size);
	return i;
}

VOID w_free(void * a)
{
	ENTRY();
	free(a);
	RETURNVOID();
}

